package com.woniu.service.mallSystem;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.model.mallSystem.dto.OrderDto;
import com.woniu.model.mallSystem.entity.Order;
import com.woniu.model.mallSystem.vo.OrderItemVo;
import com.woniu.model.mallSystem.vo.OrderQueryVo;
import com.woniu.model.mallSystem.vo.OrderVo;
import com.woniu.model.mallSystem.vo.PageVo;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lzj
 * @since 2023-10-19
 */
public interface IOrderService extends IService<Order> {

    /**
     * 导出订单
     */
    List<OrderVo> findAll();

    PageVo findAllOrder(Integer pageNum, Integer pageSize);

    PageVo advancedQuery(Integer pageNum, Integer pageSize, OrderQueryVo orderQueryVo);

    List<OrderItemVo> findItemByOrderId(Long id);
    String findImgByCommodityId(Long id);

    /****
     * 
     *----------------------------------------------------------------
     * 
     */
    OrderVo selectById(Integer orderId);

    Page<OrderVo> getPageInfo(Integer pageSize, Integer pageNum, Integer state);

    List<OrderDto> getByIds(List<Integer> ids);
}
